﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;
using System.Runtime.Serialization;


namespace MoviTiendas.Logica
{
    [DataContract]
    public class Categoria
    {
         [DataMember]
        public String nombre { get; set; }
         [DataMember]
        public List<SubCategoria> subcategorias { get; set;}
         [DataMember]
        public Tienda tienda { get; set; }
        public Categoria(String nombre, Tienda tienda)
        {
            this.nombre = nombre;
            this.tienda = tienda;
            subcategorias = new List<SubCategoria>();
        }

        public void agregarSubcategoria( SubCategoria sub)
        {
            subcategorias.Add(sub);
        }


    }
}
